import 'package:json_annotation/json_annotation.dart';

part 'author.g.dart';

///  flutter packages pub run build_runner build
@JsonSerializable()
class Author extends Object {

  @JsonKey(name: 'name')
  String name;

  Author(this.name,);

  factory Author.fromJson(Map<String, dynamic> srcJson) => _$AuthorFromJson(srcJson);

  Map<String, dynamic> toJson() => _$AuthorToJson(this);

}